import request from '@/utils/request'

// 查询用印申请列表
export function listSeal_application(query) {
  return request({
    url: '/ehr/seal_application/list',
    method: 'get',
    params: query
  })
}

// 查询用印申请详细
export function getSeal_application(applyId) {
  return request({
    url: '/ehr/seal_application/' + applyId,
    method: 'get'
  })
}

// 新增用印申请
export function addSeal_application(data) {
  return request({
    url: '/ehr/seal_application',
    method: 'post',
    data: data
  })
}

// 修改用印申请
export function updateSeal_application(data) {
  return request({
    url: '/ehr/seal_application',
    method: 'put',
    data: data
  })
}

// 删除用印申请
export function delSeal_application(applyId) {
  return request({
    url: '/ehr/seal_application/' + applyId,
    method: 'delete'
  })
}

// 提交用印申请审批
export function approvalSeal_application(data) {
  return request({
    url: '/ehr/seal_application/approval',
    method: 'post',
    data: data
  })
}
